﻿using System;


namespace gnet1Console
{
  class Program
  {
    static void Main(string[] args)
    {
      DateTime time0;

      for (int i = 0; i < 50; i++)
      {
        time0 = DateTime.UtcNow;
        //var gWcfRemote = new gnet1WCFServices_remote.Service1Client();
        var gWcfRemote = new ServiceReference1.Service1Client();
        var gWcfLocal = new gnet1WCFServices_local.Service1Client();
        var timeSpan = DateTime.UtcNow - time0;
       
       // Console.WriteLine("Local Counter = " + gWcfLocal.GetSiteCounter());
       // Console.WriteLine("Remote Counter = " + gWcfRemote.GetSiteCounter() + string.Format("   {0}  {1}", i, timeSpan.ToString()));

        //Console.WriteLine("Local Counter = " + gWcfLocal.GetData(i));
        Console.WriteLine(" local Counter = {0}, {1},  {2}", i, gWcfRemote.GetData(i), timeSpan.ToString(@"dd\.hh\:mm\:ss\.fffffff"));
      }

      System.Console.WriteLine("Press 'Q' to exit");
      do { /*nothing*/} while (System.Console.ReadKey(true).Key != ConsoleKey.Q);
    }
  }
}
